package com.ym.b2b.payment.controller.bocPay.util;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.text.DecimalFormat;

import com.ym.b2b.payment.controller.fmcib.Goods;

public class Test {
	
	public static void main(String[] args) throws FileNotFoundException {
	/*	double a=15;
		DecimalFormat df=new DecimalFormat("0.00");

		System.out.println(df.format(a));
		D:\Eclipse workspace\medshop2\medshop\medshop-core\medshop-core-trade\target\test-classes\boc-conf\boc.cer 
		String s = "MIIEZgYJKeit8N0Y+Rl8795s7I6aSGAq/84Y6WoCAGgOioV2o5Zju0uq139d2Tf0bC5nodb5UXpVk+M=";
		System.out.println(s.length());*/
		Test t= new Test();
		t.getPath();
		
	}
	
	public String getPath() throws FileNotFoundException{
		String path  = this.getClass() .getClassLoader().getResource("").getPath(); 
		System.out.println(path+"boc-conf/boc.cer");
		FileInputStream fis = new FileInputStream(path+"boc-conf/boc.cer");
		return path;
	}
}
